from django.urls import path

from . import views

app_name = 'vt1'
urlpatterns = [
    path('', views.index, name='indexPage'),
    path('p/', views.problemList, name='problemList'),
    path('p/<int:id>/', views.problemView, name='problemInfo'),
    path('p/<int:id>/submit/', views.problemSubmit, name='problemSubmit'),
    path('login/', views.login, name='login'),
    path('register/', views.reg, name='register'),
    path('api/login', views.checklogin, name='apiLogin'),
    path('api/register', views.checkreg, name='apiRegister'),
    path('user/<uid>/', views.userView, name='userInfo'),
    path('rank/<mod>/', views.userRank, name='userRank'),
]